// 房屋数据
interface HouseParams {
  type: 'price' | 'area' | 'bdate'
}

interface HouseDataItem {
  name: string
  type: string
  count: number
  createDate: string
}

type HouseResData = Array<HouseDataItem>

// 学校数据
interface SchoolDataItem {
  total: number
  latnName: string
  primarySchool: number
  middleSchool: number
}

type SchoolResData = Array<SchoolDataItem>

// 数据趋势
interface WeekDataRes {
  0: {房产: Array<{ num: number; createDate: string }>}
  1: {学校: Array<{ num: number; createDate: string }>}
  2: {美团商家: Array<{ num: number; createDate: string }>}
  3: {其他: Array<{ num: number; createDate: string }>}
}
  

// 热门网站
interface HotWangzhanItem {
  name: string
  num: number
  createDate: string
}

type HotWangzhanRes = Array<HotWangzhanItem>

// 其他数据
export interface ScreenOtherItem {
  type: string
  num: string
  createDate: string
}

export type ScreenOtherRes = Array<ScreenOtherItem>

export type {
  HouseParams,
  HouseResData,
  SchoolResData,
  WeekDataRes,
  HotWangzhanRes
}